Xbasic

INET::Socket::Connect Method

Syntax

Result_Flag as L = Connect(Host as C, Port as N [, ConnectTimeout = -1 as N])

Arguments

Result_Flag

TRUE (.T.) if the operation was successful; otherwise FALSE (.F.).

Host

Character

Port

Numeric

ConnectTimeout = -1

Optional. Default = -1 (No timeout). The timeout interval in milliseconds.

Description

The INET::Socket::Connect() method opens a connection to the requested host and port. Note: ConnectTimeout is in milliseconds.

See Also